package com.kotlin.demo

import java.io.File

fun main() {
    var name: String = "lsjdfjslfjs"
    val result = name.also { }
    println(result)


    val file = File("D://a.text")
    //不管file 经过了多少操作 最终还是返回file本身
    val sourceFile = file.also {
        file.setReadable(true)
        file.setWritable(true)
    }.also {
        file.setWritable(true)
        file.setWritable(true)
    }.also {

    }
}



